package com.arvinclub.service.dao;

import com.arvinclub.model.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评论DAO层
 */
public interface CommentDao
{
    Comment backCommentById(int id);

    void addComment(@Param("blog") int blogId, @Param("user") int userId, @Param("content") String content, @Param("time") String time);

    Comment backCommentByBlogId(int id);

    void delComment(int id);

    void updateComment(Comment comment);
}
